FROM registry.openanolis.cn/openanolis/anolisos:23

LABEL \
    maintainer="OpenAnolis Intel Arch SIG" \
    org.opencontainers.image.title="nginx-accel" \
    org.opencontainers.image.version="1.22.1-23"

RUN dnf install openssl1.1 -y
RUN dnf install qatengine intel-QAT20-devel intel-ipp-crypto-mb intel-ipsec-mb qatzip-devel -y
RUN dnf install aa_nginx -y

RUN sed -i 's/#user /user/g' /etc/aa_nginx/aa_nginx.conf

COPY entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]

STOPSIGNAL SIGQUIT

CMD ["aa_nginx", "-g", "daemon off;"]
